package com.wjw.controller;


import com.wjw.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/book")
public class BookController {

    @Autowired
    private Book book;

    @GetMapping("/b01")
    public Book b01(){
        return book;
    }

    @GetMapping("/b02")
    public void b02(){
        System.out.println("我爱钱，钱爱我，钱从四面八分来");
    }
}
